<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>2D 我的世界</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div class="game-container">
        <div class="ui-panel">
            <h1>2D 我的世界</h1>
            <div class="controls">
                <div class="block-selector">
                    <button class="block-btn active" data-block="grass">🌱 草地</button>
                    <button class="block-btn" data-block="dirt">🟫 泥土</button>
                    <button class="block-btn" data-block="stone">🪨 石头</button>
                    <button class="block-btn" data-block="wood">🪵 木头</button>
                </div>
                <div class="info">
                    <span>左键：破坏方块</span>
                    <span>右键：放置方块</span>
                    <span>时间: <span id="time-display">白天</span></span>
                </div>
            </div>
        </div>
        <canvas id="gameCanvas" width="800" height="600"></canvas>
    </div>
    <script src="game.js"></script>
</body>
</html>
